package com.atguigu.tingshu.common.pojo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.amqp.rabbit.connection.CorrelationData;

import java.util.UUID;

@Data
@Schema
public class TingShuCorrelationData extends CorrelationData {
    @Schema(description = "消息id")
    private String id = UUID.randomUUID().toString();
    @Schema(description = "交换机")
    private String exchange;
    @Schema(description = "消息")
    private Object msg;
    @Schema(description = "路由键")
    private String routingKey;
    @Schema(description = "重试次数")
    private int retryCount = 1;
    @Schema(description = "是否重试")
    private Boolean isRetry;
    @Schema(description = "最大重试次数")
    private int limit = 3;
}
